package com.xinhe.web.common;
import com.xinhe.web.vo.MenuTreeView;
import java.util.Comparator;
public class MenuComparator implements Comparator<MenuTreeView>
{
    public int compare(MenuTreeView o1, MenuTreeView o2) {
        int result = o1.getSequence().intValue() - o2.getSequence().intValue();
        if (0 == result) {
            result = (int)(o1.getId().longValue() - o2.getId().longValue());
        }
        return result;
    }
}